import request from '@/utils/request'

// 查询生产部门及组别列表
export function queryDeptWorkshopGroup(data) {
  return request({
    url: '/tWorkshopGroup/queryDeptWorkshopGroup',
    method: 'post',
    data
  })
}
// 添加组别接口
export function insertWorkshopGroup(data) {
  return request({
    url: '/tWorkshopGroup/insertWorkshopGroup',
    method: 'post',
    data
  })
}
// 删除组别接口
export function delWorkshopGroup(data) {
  return request({
    url: '/tWorkshopGroup/delWorkshopGroup',
    method: 'post',
    data
  })
}
// 修改工序库名称
export function updateWorkshopGroup(data) {
  return request({
    url: '/tWorkshopGroup/updateWorkshopGroup',
    method: 'post',
    data
  })
}

// 外包工序列表
export function queryWorkingNameList(data) {
  return request({
    url: '/tWorkingname/queryWorkingNameList',
    method: 'post',
    data
  })
}
// 外包工序列表（外包单详情工序名称用）
export function queryWorkSupplierDetailList(data) {
  return request({
    url: '/tWorksupplier/queryWorkSupplierDetailList',
    method: 'post',
    data
  })
}
// 外包工序新增
export function insertWorkingName(data) {
  return request({
    url: '/tWorkingname/insertWorkingName',
    method: 'post',
    data
  })
}
// 外包工序修改
export function updateWorkingName(data) {
  return request({
    url: '/tWorkingname/updateWorkingName',
    method: 'put',
    data
  })
}
// 外包工序删除
export function deleteWorkingName(data) {
  return request({
    url: '/tWorkingname/deleteWorkingName',
    method: 'delete',
    data
  })
}
// 外包工序审核
export function workingNameAudit(data) {
  return request({
    url: '/tWorkingname/workingNameAudit',
    method: 'put',
    data
  })
}
// 外包工序反审核
export function workingNameUnAudit(data) {
  return request({
    url: '/tWorkingname/workingNameUnAudit',
    method: 'put',
    data
  })
}
// 外包工序反提交
export function workingNameUnSubmit(data) {
  return request({
    url: '/tWorkingname/workingNameUnSubmit',
    method: 'put',
    data
  })
}
// 外包工序提交
export function workingNameSubmit(data) {
  return request({
    url: '/tWorkingname/workingNameSubmit',
    method: 'put',
    data
  })
}
// 外包工序反禁用
export function workingNameUnDisable(data) {
  return request({
    url: '/tWorkingname/workingNameUnDisable',
    method: 'put',
    data
  })
}
// 外包工序禁用
export function workingNameDisable(data) {
  return request({
    url: '/tWorkingname/workingNameDisable',
    method: 'put',
    data
  })
}

// 供应商工序列表
export function queryWorkSupplierList(data) {
  return request({
    url: '/tWorksupplier/queryWorkSupplierList',
    method: 'post',
    data
  })
}
// 供应商工序新增
export function insertWorkSupplier(data) {
  return request({
    url: '/tWorksupplier/insertWorkSupplier',
    method: 'post',
    data
  })
}
// 供应商工序修改
export function updateWorkSupplier(data) {
  return request({
    url: '/tWorksupplier/updateWorkSupplier',
    method: 'put',
    data
  })
}
// 供应商工序删除明细行
export function deleteWorkSupplierDetails(data) {
  return request({
    url: '/tWorksupplier/deleteWorkSupplierDetails',
    method: 'post',
    data
  })
}
// 供应商工序删除
export function deleteWorkSupplier(data) {
  return request({
    url: '/tWorksupplier/deleteWorkSupplier',
    method: 'DELETE',
    data
  })
}
// 供应商工序详情-表头
export function queryWorkSupplierHeader(data) {
  return request({
    url: '/tWorksupplier/queryWorkSupplierHeader',
    method: 'post',
    data
  })
}
// 供应商工序详情-表格
export function queryWorkSupplierDetails(data) {
  return request({
    url: '/tWorksupplier/queryWorkSupplierDetails',
    method: 'post',
    data
  })
}
// 供应商工序反审核
export function workSupplierUnAudit(data) {
  return request({
    url: '/tWorksupplier/workSupplierUnAudit',
    method: 'put',
    data
  })
}
// 供应商工序审核
export function workSupplierAudit(data) {
  return request({
    url: '/tWorksupplier/workSupplierAudit',
    method: 'put',
    data
  })
}
// 供应商工序反提交
export function workSupplierUnSubmit(data) {
  return request({
    url: '/tWorksupplier/workSupplierUnSubmit',
    method: 'put',
    data
  })
}
// 供应商工序提交
export function workSupplierSubmit(data) {
  return request({
    url: '/tWorksupplier/workSupplierSubmit',
    method: 'put',
    data
  })
}
// 供应商工序反禁用
export function workSupplierUnDisable(data) {
  return request({
    url: '/tWorksupplier/workSupplierUnDisable',
    method: 'put',
    data
  })
}
// 供应商工序禁用
export function workSupplierDisable(data) {
  return request({
    url: '/tWorksupplier/workSupplierDisable',
    method: 'put',
    data
  })
}
